const Mock=require('mockjs')
//商品规格
const specife=Mock.mock({
    code:200,
    "list|70": [
        {
          'id|10-90':10,
          name: "@cname",
          title: "@ctitle(2,4)",
          text:'@cword(6)',
          "have|10-400": 0
        }
      ]
 });
 module.exports=[
    {
        url:'/vue-element-admin/getSpecification',
        type:'post',
        response:(res)=>{
          console.log(res,'resss')
          const {pageIndex,pageSize}=res.body
          const list=specife.list.slice((pageIndex-1)*pageSize,pageIndex*pageSize)
          console.log(list,'list') 
          return {
              code:200,
              data:list,
              total:specife.list.length
            }
        }
     }
 ]
 
